<?php

class Application_Model_DbTable_Keywords extends Zend_Db_Table_Abstract
{

    protected $_name = 'txy_keywords';

	public function addKeyWords($data){
		$this->insert($data);
	}
	
	public function getHotKeyWords(){
		$sql='SELECT key_words from txy_keywords group by key_words order by count(key_words) desc limit 10';
		$keyWordsList=$this->_db->query($sql);
		return $keyWordsList;
	}
}

